package cn.weekimwee.firstlineofcodeforkotlin.unit5

import android.content.Intent
import android.os.Bundle
import cn.weekimwee.firstlineofcodeforkotlin.BaseActivity
import cn.weekimwee.firstlineofcodeforkotlin.R
import kotlinx.android.synthetic.main.activity_unit5_2.*
import org.jetbrains.anko.toast

class Unit5_2Activity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_unit5_2)
        goBack.setOnClickListener {
            toast("go back------->")
            sendBroadcast(Intent("cn.weekimwee.firstlineofcodeforkotlin.goback"))
        }
    }
}
